package com.lab.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MainController {
    @ResponseBody
    @RequestMapping("/hi")
    public String test(){
        return "Hello Word";
    }

    @RequestMapping({"/","/index.html"})
    public String index(){
        return "index";
    }

    @RequestMapping("/student")
    public String Student(){
        return "student";
    }
    @RequestMapping("/teacher")
    public String Teacher(){
        return "teacher";
    }
    @RequestMapping("/operator")
    public String Operator(){
        return "operator";
    }
    @RequestMapping("/lab")
    public String Lab(){
        return "lab";
    }
    @RequestMapping("/device")
    public String Device(){
        return "device";
    }
    @RequestMapping("/deviceScrap")
    public String deviceScrap(){
        return "deviceScrap";
    }
    @RequestMapping("/deviceRepair")
    public String deviceRepair(){
        return "deviceRepair";
    }
    @RequestMapping("/deviceBorrow")
    public String deviceBorrow(){
        return "deviceUsed";
    }
    @RequestMapping("/devicePutIn")
    public String devicePutIn(){
        return "devicePutIn";
    }
    @RequestMapping("/consumablePutIn")
    public String consumablePutIn(){
        return "consumablePutIn";
    }
    @RequestMapping("/consumable")
    public String Consumable(){
        return "consumable";
    }
    //教学实验  查询
    @RequestMapping("/texperiment")
    public String Texperiment(){
        return "texperiment";
    }
    //开放性实验  查询
    @RequestMapping("/oexperiment")
    public String Oexperiment(){
        return "oexperiment";
    }
    //开放性实验 申请
    @RequestMapping("/appointmentOex")
    public String AppointmentOexperiment(){
        return "appointmentOex";
    }
    //学生界面的开放性实验申请----<我的预约申请>
    @RequestMapping("/myOexApply")
    public String OexApply(){
        return "myOexApply";
    }
    @RequestMapping("/applyTex")
    public String TexApply(){
        return "applyTex";
    }
    @RequestMapping("/myTexApply")
    public String MyTexApply(){
        return "myTexApply";
    }
    @RequestMapping("/checkTexApply")
    public String checkTexApply(){
        return "checkTexApply";
    }
    @RequestMapping("/checkOexApply")
    public String checkOexApply(){
        return "checkOexApply";
    }

    @RequestMapping("/projectApply")
    public String ProjectApply(){
        return "projectApply";
    }
    @RequestMapping("/LabAppointment")
    public String LabAppointment(){
        return "LabAppointment";
    }
    @RequestMapping({"/login","/login.html"})
    public String login(){
        return "login";
    }

}
